package com.huazai.study;

import java.lang.annotation.*;

@MyAnnotation02(name = "zzh",school = {"CUIT"})
public class kuangAnnotation {
    @MyAnnotation02(name = "zzh",school = {"CUIT"})
    public static void main(String[] args) {

    }
}


@Target(value = {ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@interface MyAnnotation02 {
    //注解的参数 ： 参数类型 + 参数名（）
    String name() default "";
    int age() default 0;
    int id() default -1;

    String[] school();
}
